// pages/main/main.js
let app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
  
  },
  toShopInfo(){
    wx.navigateTo({
      url: '/pages/my/shop',
    })
  },
  toMyGoods(){
    let url = '';
    if (!app.globalData.hasShop) {
      url = '/pages/my/shop';
    } else {
      url = '/pages/my/goods';
    }
    wx.navigateTo({
      url: url,
    })
  }
})